<!--
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-06 00:34:26
 * @LastEditTime : 2020-01-18 11:21:39
 * @LastEditors  : Please set LastEditors
 -->
<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../css/vant.css">
    <link rel="stylesheet" type="text/css" href="../css/base.css" />
    <script type="text/javascript" src="../script/jquery.js"></script>
    <script type="text/javascript" src="../script/layer/mobile/layer.js"></script>
    <script type="text/javascript" src="../script/vue.min.js"></script>
    <script type="text/javascript" src="../script/vant.min.js"></script>
    <script type="text/javascript" src="../script/fastclick.js"></script>
    <script type="text/javascript" src="../script/base.js"></script>
    <style type="text/css">
        .van-cell__value{
            text-align: right;
        }
        .user-img {
            width: 50px;
            height: 50px;
            border-radius: 25px;
            overflow: hidden;
            display: inline-block;
        }

        .user-img img {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div class="init-full">
            <van-nav-bar class="head" title="个人信息" left-arrow @click-left="onClickLeft">
            </van-nav-bar>
            <div class="body-no-bottom">
                <div class="content">
                    <van-cell>
                        <div slot="title" style="line-height: 50px;">头像</div>
                        <div class="user-img">
                            <img :src="userInfo.S_HeadImg?userInfo.S_HeadImg:'../image/header.png'" />
                        </div>
                    </van-cell>
                    <van-cell title="账号" :value="userInfo.UserCode"></van-cell>
                    <van-cell title="用户昵称" :value="userInfo.UserName"></van-cell>
                    <van-cell title="分支机构" :value="userInfo.S_BranchName"></van-cell>
                </div>
                <van-loading v-if="showLoading" />
            </div>
        </div>
    </div>
</body>

<script type="text/javascript">
    var vm;
    apiready = function () {
        // $('.init-full').show();
        var userInfo = FLD.getUserInfo();
        vm = new Vue({
            el: '#app',
            data: {
                showLoading: false,
                userInfo: userInfo
            },
            created: function () {
                var that = this;
            },
            methods: {

                onClickLeft() {
                    api.closeWin();
                }
            }
        })
    };
</script>

</html>